package com.leetcode.bit;

import java.util.Arrays;

/**
 * @author Dennis Li
 * @date 2020/7/19 21:44
 */
public class SingleNumbers_136 {

    public int singleNumber(int[] nums) {
        return Arrays.stream(nums).reduce(0, (left, right) -> left ^ right);
    }

}
